package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author fangdada
 * @email 1819675707@qq.com
 * @date 2021-04-30 21:16:24
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 后台spu信息保存功能
     * @author fd
     * @date 2021/5/24 20:48
     * @param vo
     */
	void saveSpuInfo(SpuSaveVo vo);


	/**
	 * 保存spu基本信息
	 * @author fd
	 * @date 2021/5/24 20:52
	 * @param infoEntity
	 */
	void saveBaseSpuInfo(SpuInfoEntity infoEntity);


	PageUtils queryPageByCondition(Map<String, Object> params);

	/**
	 * 商品上架
	 * @author fd
	 * @date 2021/7/1 10:48
	 * @param spuId
	 */
	void up(Long spuId);

	/**
	 * @Author FangDaDa
	 * @Description 根据skuId查询spu的信息
	 * @Date 23:14 2021/9/2
	 * @Param [skuId]
	 * @return com.atguigu.gulimall.product.entity.SpuInfoEntity
	 **/
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

